<!-- {{useCss "/app-pages/css/user/main.scss"}} -->
<div class="main_nav">
    <div class="top">
        <div class="logo">
            <div>
                {{#if loginer}}
                <href to="/user/info.html?type=1">
                    <img bind-src="{{loginer.info.header_url||'/images/anonymous.jpg'}}?imageView/1/w/110/h/110" />
                </href>
                {{#else}}
                <href to="/sign_in.html">
                    <img src="/images/anonymous.jpg" />
                </href>
                {{/if}}
            </div>
        </div>
        <div class="name">
            {{#if loginer}}
            <span>{{loginer.info.name}}</span>
            {{#else}}
            <href to="/sign_in.html">点此登陆</href>
            {{/if}}
        </div>
    </div>
    <!-- menu -->
    <div class="nav">
        <div class="nav_title"><i class="icon-doc-text"></i>我的订单</div>
        <href class="item" to="/user/order.html">
            全部订单
        </href>
        <href class="item" to="/user/order.html?id=2">
            未支付
        </href>
        <href class="item" to="/user/order.html?id=3">
            未收货
        </href>
    </div>

    <div class="nav">
        <div class="nav_title"><i class="icon-user"></i>信息管理</div>
        <href class="item" to="/user/info.html?type=3">
            我的收货地址
        </href>
        <href class="item" to="/user/info.html?type=1">
            个人信息
        </href>
        <href class="item" to="/user/info.html?type=2">
            修改密码
        </href>
    </div>

    <div class="nav">
        <div class="nav_title"><i class="icon-bookmark"></i>优惠信息</div>
        <href class="item" to="/user/tickets.html">
            优惠券
        </href>
        <href class="item" to="/user/membership.html">
            会员卡
        </href>
    </div>
    <!-- <div class="nav">
            <a class="item">
                <div event-click="{{'$Event.user.main.show_location_store_share'}}">
                    <i class="icon-paper-plane-empty"></i>
                    本站推广
                    <div class="symbol icon-{{$Cache.user.main.show_location_store_share&&'up-open-big'||'down-open-big'}}"></div>
                </div>
                <div class="shareinfo {{$Cache.user.main.show_location_store_share&&'focus'}}">
                    您的本站推广二维码
                    <div>
                        <img class="qrcode" bind-src="{{$Cache.bus.qrcode_data}}" />
                        <jqrcode
                            text="{{bus_info.info.domain_url}}?rcid={{loginer._id}}"
                            ec-level="H"
                            size="200"
                            radius="20"
                            m-image="{{bus_info.info.logo_url}}?imageView/2/h/150/w/150"
                            m-size="30"
                            bind-input="{{'$Cache.bus.qrcode_data'}}"
                            style="display:none"
                        ></jqrcode>
                    </div>
                    您的本站推广链接
                    <div>
                        {{bus_info.info.domain_url}}?rcid={{loginer._id}}
                    </div>
                </div>
            </a>
            <href class="item" to="/user/buff.html">
                <i class="icon-export"></i>
                推荐返利
                <div class="symbol icon-right-open-big"></div>
            </href>
            <href class="item" to="/user/buff.html?type=2">
                <i class="icon-link"></i>
                导购链接
                <div class="symbol icon-right-open-big"></div>
            </href>
            <href class="item" to="/user/buff.html?type=3">
                <i class="icon-retweet"></i>
                分销管理
                <div class="symbol icon-right-open-big"></div>
            </href>
            <href class="item" to="/user/invite.html">
                <i class="icon-users"></i>
                推荐注册
                <div class="symbol icon-right-open-big"></div>
            </href>
        </div> -->

    <div class="nav">
        <div class="nav_title"><i class="icon-star-half-alt"></i>收藏评价</div>
        <!-- <href class="item" to="/user/collection.html">
                <i class="icon-bank"></i>
                店铺收藏
                <div class="symbol">
                    <label>{{loginer.collectBus.length||'0'}}</label>
                   <i class="icon-right-open-big"></i>  
                </div>
            </href> -->
        <href class="item" to="/user/collection.html?type=2">
            商品收藏
            <label>{{loginer.collect.length||'0'}}</label>
        </href>
        <href class="item" to="/user/comments.html">
            评价管理
        </href>
    </div>

    <div class="nav">
        <a class="item" event-click="{{'$Event.user.main.user_login_out'}}">
            <i class=" icon-logout"></i>
            退出登陆
        </a>
    </div>
</div>
